#!/usr/bin/python2
# -*- coding: utf8 -*-
from PyQt4 import QtCore, QtGui, Qt, QtDeclarative
from models.MonthJobModel import MonthJobModel
from models.BaseTimeModel import BaseTimeModel

class WeekJobModel(MonthJobModel):
    DAY_ROLE = 0
    JOBS_ROLE = 1
    MONTH_ROLE = 2

    fromDate = QtCore.QDate.currentDate()

    def __init__(self, db, fromDate=QtCore.QDate.currentDate(), parent=None):
        self.limitJobsInElement = 25
        MonthJobModel.__init__(self, db, fromDate, parent)

    def rowCount(self, parent=QtCore.QModelIndex()):
        return 7
